import React from 'react'
import { BrowserRouter as Router,Link,Route ,NavLink,Switch} from "react-router-dom";
import List from './List';
import Top from './Top';


export default function Search() {
  return (
    <div>
      Search
      <div>
        <NavLink  to='/search/list' >list</NavLink>
        <NavLink  to='/search/top' >top</NavLink>
        <Switch>
          <Route path='/search/list' component={List}></Route>
          <Route path='/search/top' component={Top}></Route>
        </Switch>
      </div>

    </div>
  )
}
